package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.WarnInfoMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.WarnInfoService;
import com.the4man.framework.model.WarnInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("warnInfoService")
public class WarnInfoServiceImpl extends AbstractService<WarnInfo> implements WarnInfoService {
    @Autowired
    WarnInfoMapper warnInfoMapper;

    public WarnInfoServiceImpl() {
    }

    public int countByWarn() {
        return this.warnInfoMapper.countByWarn();
    }

    public int handleWarn(WarnInfo warnInfo) {
        return this.warnInfoMapper.handleWarn(warnInfo);
    }
}
